Cookie Store
A service that allows working with the session and persistent cookies.
Cookies can be stored in the process memory (session cookies) or on the file system (persistent cookies). The service provides access to both the session and persistent cookies.
The persistent cookies are stored in the user data directory. You can configure the user data directory path via the userDataDir method. For example:
Engine engine = Engine.newInstance(EngineOptions.newBuilder(renderingMode)
.userDataDir(Paths.get("/Users/MyApp/Data"))
.build());
Content copied to clipboard
All the changes to the cookie store are made in memory, so when you restart the application you will not see the changes you made with the persistent cookies if you do not invoke the persist method before application exit.